<?php

namespace common\models;

use common\base\BaseBackendActiveRecord;
use yii\base\Model;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class for table "user_bind_log".
 *
 * @property int $id 自增
 * @property int $uid 用户ID
 * @property int $bind_uid 绑定返佣ID
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class UserBindLog extends BaseBackendActiveRecord
{

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'user_bind_log';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['created_at','updated_at'], 'safe'],
            [['uid', 'bind_uid'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增',
            'uid' => 'uid',
            'bind_uid' => 'bind_uid',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
